package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

/**
 * @title: DishService
 * @Author 椎名真白
 * @Date: 2022-04-28 14:56
 * @Version 1.0
 */
public interface DishService extends IService<Dish> {
    public void saveWithDishFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品信息，同时更新对应的口味信息
    public void updateWithFlavor(DishDto dishDto);

    void updateByIds(int status,Long[] ids);

}
